package br.com.knowledge.helper;

import java.io.IOException;
import java.util.Properties;

public class SQLWindowsPropertiesReader {
	Properties properties = null;
	
	private Properties loadProperties() {
		if(properties==null){
			properties = new Properties();
			try {
				properties.load(getClass().getResourceAsStream(
						"/sqlwindows.properties"));
			} catch (IOException e) {
				e.printStackTrace();
				properties = null;
			}
		}
		return properties;
	}
	
	public static Properties getProperties(){
		return (new SQLWindowsPropertiesReader()).loadProperties();
	}
	
}
